package com.neuedu.hw_20190215;

public class StudentPrint {

    private Student student;

    public void printEmployeeSalary(){
        System.out.println("学号："+student.getStuID()+"\t姓名："
                + student.getStuName()+"\t性别："
                + student.getStrSex()+"\t年龄："+student.getStuAge()+"\t总成绩："+student.getStuTotalScore()
        );
    }

    //自定义构造方式
    public StudentPrint(Student student) {
        this.student = student;
    }
    //默认构造方式

    public StudentPrint() {
    }
    //为私有成员变量提供setter和getter方法
    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }
}
